import request from '@/utils/request'

// 查询工资计算列表
export function listWageOperate(query) {
  return request({
    url: '/module/wageOperate/list',
    method: 'get',
    params: query
  })
}

// 查询工资计算详细
export function getWageOperate(id) {
  return request({
    url: '/module/wageOperate/' + id,
    method: 'get'
  })
}

// 新增工资计算
export function addWageOperate(data) {
  return request({
    url: '/module/wageOperate',
    method: 'post',
    data: data
  })
}

// 修改工资计算
export function updateWageOperate(data) {
  return request({
    url: '/module/wageOperate',
    method: 'put',
    data: data
  })
}

// 删除工资计算
export function delWageOperate(id) {
  return request({
    url: '/module/wageOperate/' + id,
    method: 'delete'
  })
}
//更新薪资表人员数据
export function updatestaffwagelist(){
  return request({
    url:'/module/wageOperate/data/renewal'
  })
}
//计算考勤
export function updatecheckapi(data){
  return request({
    url:'/module/wageOperate/clocking/renewal',
    method:"post",
    data,
  })
}
//计算薪资
export function updatepayapi(data){
  return request({
    url:'/module/wageOperate/compute/salary',
    method:"post",
    data,
  })
}
//保存历史记录
export function saverecord(data){
  return request({
    url:'/module/wageOperate/save/history',
    method:"post",
    data,
  })
}
//计算薪资合计
export function summoneyall(data){
  return request({
    url:'/module/wageOperate/salary/sum',
    method:"post",
    data,
  })
}
//发送
export function  sendinfo(data){
  return request({
    url:'/module/wageOperate/wage/public',
    method:"post",
    data,
  })
}
